package com.littleken.sellproject.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

@Entity
@DynamicUpdate

@Data // @Data = @Getter + @Setter + @ToString
@AllArgsConstructor
@NoArgsConstructor
/**
 * 订单详情实体类
 */
public class OrderDetail {

    @Id
    private String detailId;

    private String orderId;

    private String productId;

    private String productName;

    private BigDecimal productPrice;
    //商品数量
    private Integer productQuantity;

    private String productIcon;

    private Date createTime;

    private Date updateTime;

}